/*
package edu.xlh.travel.echart;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;

import java.util.HashMap;
import java.util.List;


//转化返回的Map中数据格式
public class MapDataTransfer {
    public static String getDefaultMap() {
        HashMap<String, Integer> defaultHashMap = new HashMap<>();
        defaultHashMap.put("用户数量" , 0);
        defaultHashMap.put("订单数量" , 0);
        defaultHashMap.put("在线用户" , 0);
        ObjectMapper mapper = new ObjectMapper();
        String defaultStr = null;
        try {
            defaultStr = mapper.writeValueAsString(defaultHashMap);
        } catch (JsonProcessingException e) {
            e.printStackTrace();
        }
        return defaultStr;
    }
    public static void  tansfer(List<String> orignLastWeekDataCountListString) {
        int len = orignLastWeekDataCountListString.size();
        for(int i = 0 ; i < len ; i++) {
            if(!orignLastWeekDataCountListString.get(i).startsWith("{")) {
                orignLastWeekDataCountListString.set(i , MapDataTransfer.getDefaultMap());
            }
        }
    }
}
*/
